import $api from './index'

// 定义data的属性类型
interface companyData {
  name: string
  isVue: number
  isReact: number
  skill?: string
  areaid: string
  desc?: string
}
// 封装一个全局接口地址

// 添加功能接口
export const addCompany = async (data: companyData) => {
  const rss = await $api.post('/work', data)
  return rss
}
// 查询渲染功能接口
export const getCompany = async () => {
  const rss = await $api.get('/work')
  return rss
}
